package com.dell.chen.pojo;

import java.math.BigDecimal;
import java.sql.Date;

/**
 * @author ：ChenwithIU
 * @date ：Created in 2020/11/24 14:39
 */
public class Order {


    private Integer id;//自增
    private String orderNum;//订单号
    private String f_name;//商品名称
    private Integer count;//数量
    private BigDecimal totalPrice;//总价
    private String username;//用户
    private Date create_time;//订单生成时间
    private String remark;//备注
    //0表示未审核、1表示未发货、2表示已发货、3表示已退款
    //0 表示 未发货，1表示已发货，2表示已签收
    private Integer status = 0;

    public Order() {
    }

    public Order(Integer id, String orderNum, String f_name, Integer count, BigDecimal totalPrice, String username, Date create_time, String remark, Integer status) {
        this.id = id;
        this.orderNum = orderNum;
        this.f_name = f_name;
        this.count = count;
        this.totalPrice = totalPrice;
        this.username = username;
        this.create_time = create_time;
        this.remark = remark;
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getF_name() {
        return f_name;
    }

    public void setF_name(String f_name) {
        this.f_name = f_name;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderNum='" + orderNum + '\'' +
                ", f_name='" + f_name + '\'' +
                ", count=" + count +
                ", totalPrice=" + totalPrice +
                ", username='" + username + '\'' +
                ", create_time=" + create_time +
                ", remark='" + remark + '\'' +
                ", status=" + status +
                '}';
    }
}
